﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MINERP.PrintManage
{
    public partial class FrmKaZhi : Form
    {
        public FrmKaZhi()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (DataCheck())
            {
                ((FrmParperManager)this.Owner).kaZhiLength = Math.Round(Convert.ToDouble(txtKaZhiLength.Text), 2);
                ((FrmParperManager)this.Owner).remark = txtRemark.Text;
                ((FrmParperManager)this.Owner).isChange = true;
                this.Close();
            }
        }
        private bool DataCheck()
        {
            bool flag = true;
            if (txtKaZhiLength.Text.Trim() == string.Empty)
            {
                MessageBox.Show("卡纸长度不能为空", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtKaZhiLength.Focus();
                return false;
            }
            return flag;
        }
    }
}
